import request from '@/utils/request'

export function roomList() {
  return request({
    url: '/rtc/roomList',
    method: 'post'
  })
}

export function getQos(room, username) {
  const condition = {}
  condition['room'] = room
  condition['display'] = username

  return request({
    url: 'rtc/queryQOS',
    method: 'post',
    data: condition
  })
}
